<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="utf-8">
    <title>新增</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/js/commons/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/css/commons/base.css" media="all">
</head>
<body>
    <form id="dataForm" name="dataForm" lay-filter="dataForm" class="layui-form layui-form-pane" style="padding: 15px 0px 15px 15px">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
            <legend>人员基本信息</legend>
        </fieldset>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label required">用户名</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" lay-verify="required" id="username" name="username" autocomplete="off">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label required">密码</label>
                <div class="layui-input-inline">
                    <input type="password" class="layui-input" lay-verify="required|pwdRequired" id="password" name="password" autocomplete="off">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label required">确认密码</label>
                <div class="layui-input-inline">
                    <input type="password" class="layui-input" lay-verify="required|pwdRequired" id="password2" name="password2" autocomplete="off">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label required">真实姓名</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" lay-verify="required" id="realName" name="realName" autocomplete="off">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">生日</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" id="birthday" name="birthday" autocomplete="off">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">移动电话</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" id="mobile" name="mobile" autocomplete="off">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">办公电话</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" id="phone" name="phone" autocomplete="off">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">内部电话</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" id="innerPhone" name="innerPhone" autocomplete="off">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">参加工作时间</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" id="workDate" name="workDate" autocomplete="off">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">入职时间</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" id="entryDate" name="entryDate" autocomplete="off">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label required">人员类别</label>
                <div class="layui-input-inline">
                    <select class="layui-select" lay-verify="required" id="personnelTypeId" name="personnelTypeId" autocomplete="off">
                        <option value="">请选择</option>
                        <option th:each="ptl: ${personnelTypeList}" th:value="${ptl.id}" th:text="${ptl.typeName}"></option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-inline">
                    <select class="layui-select" id="sex" name="sex">
                        <option value="">请选择</option>
                        <option value="0">男</option>
                        <option value="1">女</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label required">证件类型</label>
                <div class="layui-input-inline">
                    <select class="layui-select" lay-verify="required" id="certTypeId" name="certTypeId" autocomplete="off">
                        <option value="">请选择</option>
                        <option th:each="ctl: ${certTypeList}" th:value="${ctl.id}" th:text="${ctl.typeName}"></option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label required">证件号码</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" lay-verify="required" id="certNo" name="certNo" autocomplete="off">
                </div>
            </div>
        </div>
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
            <legend>组织机构信息</legend>
        </fieldset>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label required">所属机构</label>
                <div class="layui-input-inline">
                    <select class="layui-select" lay-verify="required" id="deptId" name="deptId" autocomplete="off">
                        <option value="">请选择</option>
                        <option th:each="dept: ${deptList}" th:value="${dept.id}" th:text="${dept.depName}"></option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">是否领导</label>
                <div class="layui-input-inline">
                    <select class="layui-select" id="leader" name="leader" autocomplete="off">
                        <option value="">请选择</option>
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">是否正职</label>
                <div class="layui-input-inline">
                    <select class="layui-select" id="formal" name="formal" autocomplete="off">
                        <option value="">请选择</option>
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </div>
            </div>
        </div>
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
            <legend>岗位信息</legend>
        </fieldset>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label required">所属岗位</label>
                <div class="layui-input-inline">
                    <select class="layui-select" lay-verify="required" id="roleId" name="roleId" autocomplete="off">
                        <option value="">请选择</option>
                        <option th:each="role: ${roleList}" th:value="${role.id}" th:text="${role.roleName}"></option>
                    </select>
                </div>
            </div>
        </div>
        <button type="button" class="layui-btn" lay-filter="submitBtn" style="display:none;" lay-submit="" id="submitBtn" name="submitBtn">保存</button>
    </form>
</body>
</html>
<script charset="utf-8" src="/js/commons/layui/layui.all.js" ></script>
<script charset="utf-8" src="/js/commons/jquery.js"></script>
<script src="/js/mng/system/user_add.js"></script>